/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tofc.chart;

import tofc.style.BaseDotStyle;
import tofc.value.BaseScatterDot;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author p476733
 */
public class Scatter extends BaseXYChart {

    private String type;
    private String style;
    private List values;
    private Integer width;
    private BaseDotStyle dotStyle;
    private String colour;

    /**
     *
     */
    public Scatter() {
        this.values = new ArrayList();
        this.type="scatter";
    }

    /**
     *
     * @return colour
     */
    public String getColour() {
        return colour;
    }

    /**
     *
     * @param colour
     */
    public void setColour(String colour) {
        this.colour = colour;
    }

    /**
     *
     * @return dotStyle
     */
    public BaseDotStyle getDotStyle() {
        return dotStyle;
    }

    /**
     *
     * @param dotStyle
     */
    public void setDotStyle(BaseDotStyle dotStyle) {
        this.dotStyle = dotStyle;
    }

    /**
     *
     * @return style
     */
    public String getStyle() {
        return style;
    }

    /**
     *
     * @param style
     */
    public void setStyle(String style) {
        this.style = style;
    }

    /**
     *
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     *
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     *
     * @return values
     */
    public List getValues() {
        return values;
    }

    /**
     *
     * @param values
     */
    public void setValues(BaseScatterDot... values) {
        this.values.clear();
        addValues(values);
    }

    /**
     *
     * @param values
     */
    public void addValues(BaseScatterDot... values) {
        for (int i = 0; i < values.length; i++) {
            this.values.add(values[i]);
        }
    }

    /**
     *
     * @param position
     * @param value
     */
    public void setValue(int position, BaseScatterDot value) {
        this.values.set(position, value);
    }

    /**
     *
     * @return width
     */
    public Integer getWidth() {
        return width;
    }

    /**
     * 
     * @param width
     */
    public void setWidth(Integer width) {
        this.width = width;
    }
}
